package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StrategyLikeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyLike record);

    StrategyLike selectByPrimaryKey(Long id);

    List<StrategyLike> selectAll();

    int updateByPrimaryKey(StrategyLike record);

    StrategyLike queryExistLikeByUserIdAndStrategyId(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    void insertStrategyNum(@Param("userId") Long userId, @Param("strategyId") Long strategyId, @Param("l") long l);

    Long queryNumByStrategyId(Long strategyId);

    void delete(Long userId);

    void deleteStrategyNum(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    Long queryForNumByStrategyId(Long strategyId);
}